﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Articles.aspx.cs" Inherits="TestProject.Editor.Articles" %>

<%@ Register TagPrefix="uc" TagName="ArticleViewLine" src="~/UserControls/ArticleViewLine.ascx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Repeater runat="server" ID="dataRepeater" OnItemCommand="dataRepeater_ItemCommand">
        <HeaderTemplate>
            <table border="1">
                <tr>
                    <td style="display:none">
                        Article ID
                    </td>
                    <td>
                        Name
                    </td>
                    <td></td>
                </tr>
        </HeaderTemplate>
       <%-- <ItemTemplate>
            <tr>
                <td style="display:none">
                    <%# DataBinder.Eval(Container.DataItem, "ArticleID") %>
                </td>
                <td>
                    <%# DataBinder.Eval(Container.DataItem, "ArticleName") %>
                </td>
                <td>
                    <a href="<%# "/ArticleDetails.aspx?ID=" + DataBinder.Eval(Container.DataItem, "ArticleID") %>" >Select</a>
                </td>
                <td>
                    <asp:Button ID="ArticleDelete" runat="server" Text="Delete" 
                         OnClick="DeleteArticle"/>
                </td>
            </tr>
        </ItemTemplate>--%>
        <ItemTemplate>
            <uc:ArticleViewLine ID="ArticleLine" runat="server" ArtName='<%# DataBinder.Eval(Container.DataItem, "ArticleName") %>'
                ArtText='<%# DataBinder.Eval(Container.DataItem, "ArticleID")%>' />
        </ItemTemplate>
        <FooterTemplate>
            </table></FooterTemplate>
            
    </asp:Repeater>
    
</asp:Content>
